Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictHolderExt Class / TryGetStringArray Method / TryGetStringArray(IPdfDictHolder,String,PdfString[],Boolean) Method
The current PDF dictionary holder.
The key of the value to get.
OUT: the value associated with the specified key.
Specifies whether a single PDF string should be converted to an array.

In This Topic
    TryGetStringArray(IPdfDictHolder,String,PdfString[],Boolean) Method
    In This Topic
    Tries to get the array of PdfString objects associated with the specified key (in a PDF a PdfString array should be represented as a PDF array containing PDF strings). Optionally converts a single PDF string to an array.

    Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value exists but cannot be converted to an array.

    Syntax
    'Declaration
     
    Public Overloads Shared Function TryGetStringArray( _
       ByVal pdh As IPdfDictHolder, _
       ByVal key As System.String, _
       ByRef value() As PdfString, _
       Optional ByVal singleToArray As System.Boolean _
    ) As System.Boolean
    public static System.bool TryGetStringArray( 
       IPdfDictHolder pdh,
       System.string key,
       out PdfString[] value,
       System.bool singleToArray
    )

    Parameters

    pdh
    The current PDF dictionary holder.
    key
    The key of the value to get.
    value
    OUT: the value associated with the specified key.
    singleToArray
    Specifies whether a single PDF string should be converted to an array.

    Return Value

    True if the key was found and the value could be converted to an array, false otherwise.
    See Also